package org.example.cloudalibaba.service;

import org.example.springcloud.common.Result;
import org.example.springcloud.entity.Payment;
import org.springframework.stereotype.Service;

// PaymentService统一降级服务处理方法
@Service
public class PaymentFallbackService implements PaymentService {
    // 当paymentInfo不可用时，返回的错误信息
    @Override
    public Result<Payment> paymentInfo(Long id) {
        return Result.error("服务不可用，请稍后再试，id = {}", id);
    }
}
